﻿#include "IniFile.h"
#include "StdioFileEx.h"
#include "obj.h"
#include <map>
using namespace std;

#define ConfigFile  _T(".//Config.ini")
#define AccountFile _T(".//Account.ini")
extern dmsoft * g_dm;
extern CIniFile g_IniFile;
extern CIniFile g_AccountFile;
extern CString arrState[];




extern map<CString, OcrInfo>ocrMap;

void StringSplit(CString source, CStringArray& dest, char division);

DWORD RandomNumber(DWORD dwNumber1, DWORD dwNumber2);
void KillProcess(CString sExeName);
CString NumberToString(LONG Number);
int SplitVARIANT(CString strSrc, VARIANT* nlist, CString division);

void dmClick(OcrInfo ocrInfo);
void dmDoubleClick(OcrInfo ocrInfo);
bool runScript(CString str);
bool FindCol(OcrInfo ocrInfo);
bool FindMulCol(OcrInfo ocrInfo);
bool CmpCol(OcrInfo ocrInfo);
bool FindPic(OcrInfo ocrInfo);
bool FindStr(OcrInfo ocrInfo);
bool FindColBlock(OcrInfo ocrInfo);
bool runScriptList( CString str);
